﻿
@model RTW.OA.Models.meeting
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "MeetingSummary", FormMethod.Post, new { area = "Meeting", id = "meetingsummaryfrom", name = "meetingsummaryfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        <dl>
                            <dt>会议名称</dt>
                            <dd>
                                @Html.DisplayTextFor(m => m.M_NAME)
                                @*@Html.EditorFor(m => m.M_NAME, new { htmlAttributes = new { @class = "input normal form-control"  ,datatype="*", nullmsg=" ", errormsg=" ", sucmsg=" "} })*@
                            </dd>
                        </dl>
                        <dl>
                            <dt>纪要内容</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.SUMMARY, new { @class = "editor" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>指定读者</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.READ_PEOPLE_ID, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议纪要附件ID</dt>
                            <dd>
                                @Html.TextBoxFor(m => m.ATTACHMENT_ID1, new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议纪要附件名称</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.ATTACHMENT_NAME1, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>实际参会人员</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.M_FACT_ATTENDEE, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>审批人</dt>
                            <dd>
                                @Html.EditorFor(m => m.APPROVE_NAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        @Html.HiddenFor(m => m.M_ID)

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.closeTab('6202')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>*@
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/uploader.js")"></script>

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#meetingsummaryfrom").initValidform();
            $(".upload-img").InitUploader({ filesize: "@RTW.OA.Servers.CommServers.LoadSysConfig().imgsize", sendurl: "@Url.Content("~/Ashx/Upload_ajax.ashx")", swf: "@Url.Content("~/Content/js/common/webuploader/uploader.swf")", filetypes: "@RTW.OA.Servers.CommServers.LoadSysConfig().fileextension" });

        });
        function savefrom() {
            $("#meetingsummaryfrom").submit();
        }

        //初始化编辑器
        $(".editor").each(function (i) {
            var objId = $(this).attr("id");
            if (objId != "undefined") {
                var editor = UE.getEditor(objId, {
                    serverUrl: '../../../Ashx/Upload_ajax.ashx',
                    initialFrameWidth: '100%',
                    initialFrameHeight: 350
                });
            }
        });
        $(".editor-mini").each(function (i) {
            var objId = $(this).attr("id");
            if (objId != "undefined") {
                var editorMini = UE.getEditor(objId, {
                    serverUrl: '../../../Ashx/Upload_ajax.ashx',
                    initialFrameWidth: '100%',
                    initialFrameHeight: 250,
                    toolbars: [[
                        'fullscreen', 'source', '|', 'undo', 'redo', '|',
                        'bold', 'italic', 'underline', 'strikethrough', 'removeformat', 'pasteplain', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
                        'link', 'unlink', 'anchor', '|',
                        'simpleupload', 'insertimage', 'scrawl', 'insertvideo'
                    ]]
                });
            }
        });
    </script>

}